//
//  SocialUtils.h
//  WXDemo
//
//  Created by Joueu on 14-11-6.
//
//

#ifndef __WXDemo__SocialUtils__
#define __WXDemo__SocialUtils__

#include "cocos2d.h"


#if (CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID)

#include <jni.h>
#include "platform/android/jni/JniHelper.h"
#include <android/log.h>

#endif

USING_NS_CC;

class SocialUtils{
public:
    static void registerWeixin(char *appID);
    static void shareToWeiXin();
    static void destroy();
public:
#if (CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID)
    static void registerWeixinForAndroid(char *appID);
    static void shareToWeixinForAndroid();
//    static void destroyForAndroid();
#endif
    
public:
#if (CC_TARGET_PLATFORM == CC_PLATFORM_IOS)
    static void registerWeixinForIOS(char *appID);
    static void shareToWeixinForIOS();
//    static void destroyForIOS();
#endif
    
public:
    static void setUIViewController(void *viewController);
    

private:
    static const char * getDeviceLanguage();
    static void setShareContent();
public:
    static void setShareType(int type);
};

#endif /* defined(__WXDemo__SocialUtils__) */
